package org.xp.judgeplatform.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.time.LocalDateTime;

@Data
@TableName("chat_messages")
public class ChatMessage {
    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField("message_id")
    private String messageId;

    @TableField("session_id")
    private String sessionId;

    @TableField("user_id")
    private Integer userId;

    @TableField("is_ai")
    private Boolean isAi; // true=AI, false=用户

    private String content;

    @TableField("created_at")
    private LocalDateTime createdAt;
}